package cn.knet.sp.ncrm.modules.customer.potentialcustomer.dao;

import java.util.List;

import cn.knet.sp.ncrm.common.persistence.CrudDao;
import cn.knet.sp.ncrm.common.persistence.annotation.MyBatisDao;
import cn.knet.sp.ncrm.modules.customer.potentialcustomer.entity.PotentialCustomerStatus;

@MyBatisDao
public interface PotentialCustomerStatusDao extends CrudDao<PotentialCustomerStatus>{

	/**
	 * <p>获取该用户下的某个客户的状态信息</p>
	 * @param potentialCustomerStatus
	 * @return
	 */
	public List<PotentialCustomerStatus> getByUserIdAndCustomerId(PotentialCustomerStatus potentialCustomerStatus);
	
	/**
	 * <p>根据上级分配的数据</p>
	 * @param potentialCustomerStatus
	 */
	public void  deleteByParentIdAndCustomerId(PotentialCustomerStatus potentialCustomerStatus);
	
	/**
	 * <p>清楚分配的所有数据适用于数据管理员</p>
	 * @param potentialCustomerStatus
	 */
	public void  recoveryAll(PotentialCustomerStatus potentialCustomerStatus);
	
	/**
	 * <p>删除数据</p>
	 * @param potentialCustomerStatus
	 */
	public void deleteByFirstHandId(PotentialCustomerStatus potentialCustomerStatus);
	

}
